<?php
use think\Route;
Route::domain('adminapi',function(){
Route::get('/','adminapi/index/index');
// 验证码图片
Route::get('captcha/:id','\think\captcha\CaptchaController@index');//访问图片需要
Route::get('captcha','adminapi/login/captcha');
// 登录
Route::post('login','adminapi/Login/login');
// 推出
Route::get('logout','adminapi/Login/logout');
// 权限接口
Route::resource('auths','adminapi/Auth',[],['id'=>'\d+']);
//菜单权限列表
Route::get('nav','adminapi/Auth/nav');
//角色接口
Route::resource('roles','adminapi/Role',[],['id'=>'\d+']);
});

